package com.bot.nft.core.config;

import java.util.Random;

public class RandomNameGen {
    private RandomNameGen(){

    }

    private static final char[] CHARACTERS = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','0','1','2','3','4','5','6','7','8','9'};

    public static String gener(){
        StringBuilder stringBuilder = new StringBuilder();

        for (int i = 0;i<8;i++){
            int index = new Random().nextInt(CHARACTERS.length);
            stringBuilder.append(CHARACTERS[index]);
        }
        return stringBuilder.toString();
    }

}
